package model

import (
	"gorm.io/gorm"
	"time"
)

type Model struct {
	ID        uint           `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

type Pagination struct {
	Page     int `json:"page" query:"page" default:"1"`
	PageSize int `json:"page_size" query:"page_size" default:"20"`
}
type Sorting struct {
	Order          string `json:"order" query:"order" default:"id"`
	OrderDirection bool   `json:"order_direction" query:"order_direction" default:"true"`
}
